package com.mtsmda.designPattern.abstract_factory;

import com.mtsmda.designPattern.factory.Computer;
import com.mtsmda.designPattern.factory.PC;

public class PCFactory implements ComputerAbstractFactoryI{
	private String hdd;
	private String ram;
	private String cpu;

	public PCFactory(String hdd, String ram, String cpu) {
		this.cpu = cpu;
		this.hdd = hdd;
		this.ram = ram;
	}
	@Override
	public Computer createComputer() {
		return new PC(this.hdd, this.ram, this.cpu);
	}
	
}